package com.tiger.job;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class TestJob implements InitializingBean {

	@Scheduled(cron="${cron}")
	public void run() {
		System.out.println("测试quartz...");
	}

	@Override
	public void afterPropertiesSet() throws Exception {
		System.out.println("InitializingBean...");
	}
}
